import React, { Component } from 'react';
import Header from '../../mine/ui/header/Header'
import Chat from '../ui/Chat'
import {
  withRouter,
} from 'react-router-dom'
@withRouter
class WecHat extends Component {
  handleClick =()=>{
      let { history } = this.props
      history.push(`/window`)
    }
  render() {
    return (
      <div style={{backgroundColor: '#eceff2'}}>
        <Header title='消息'></Header>
        <Chat
        onChageClick={this.handleClick}
        ></Chat> 
      </div>
    );
  }
}
export default WecHat
